/************************************************************************/
/*  									*/
/*  splitcdwds.c							*/
/*									*/
/*  Tom Lookabaugh							*/
/*  August 13, 1987							*/
/*  Last Revision: August 13, 1987					*/
/*									*/
/*  DESCRIPTION								*/
/*	Increase codebook size by incr number of codewords. 		*/
/*  RETURNS								*/
/*	No significant return value.  Modifies storage pointed to by	*/
/*	cdbk.								*/
/*  CALLS								*/
/*	perturb()							*/
/*									*/
/************************************************************************/

#include "stdvq.h"

splitcdwds (cdbk, cdbkup, cdbksz, incr)

    double *cdbk;		/* codebook				*/
    double *cdbkup;		/* update information for codebook	*/
    int cdbksz;			/* (pt) codebook size			*/
    int incr;			/* increase in codebook size		*/
    
{

    int c;			/* iteration counter			*/
    

    for (c = 0; c < incr; c++) {
        perturb(cdbkup + cdbkupdim*c, cdbk + (cdbksz + c)*cdbkdim, add_offset, 
          mult_offset);
    }
}

